<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>刷新</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysqli.reap-async-query.html">« mysqli::reap_async_query</a></li>
      <li style="float: right;"><a href="mysqli.release-savepoint.html">mysqli::release_savepoint »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.mysqli.html">MySQLi</a></li>
    <li>刷新</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mysqli.refresh" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::refresh</h1>
  <h1 class="refname">mysqli_refresh</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mysqli::refresh</span> -- <span class="refname">mysqli_refresh</span> &mdash; <span class="dc-title">刷新</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-mysqli.refresh-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>mysqli::refresh</strong></span>(<span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>mysqli_refresh</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$link</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   刷新表或者缓存，或者重置主从服务器信息。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mysqli.refresh-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    <dt>

<code class="parameter">mysql</code></dt>
<dd>
<p class="para">仅以过程化样式：由<span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span> 或 <span class="function"><a href="mysqli.init.html" class="function">mysqli_init()</a></span>
返回的 <span class="classname"><a href="class.mysqli.html" class="classname">mysqli</a></span> 对象。</p></dd>

    
     <dt>
<code class="parameter">options</code></dt>

     <dd>

      <p class="para">
       使用 <a href="mysqli.constants.html" class="link">MySQLi 常量</a> 中的
       MYSQLI_REFRESH_* 常量作为刷新选项。
      </p>
      <p class="para">
       参见 MySQL 官方文档：
       <a href="http://dev.mysql.com/doc/mysql/en/mysql-refresh.html" class="link external">&raquo;&nbsp;MySQL Refresh</a>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mysqli.refresh-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功返回 <strong><code>true</code></strong>，否则返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-mysqli.refresh-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mysqli.poll.html" class="function" rel="rdfs-seeAlso">mysqli_poll()</a> - 轮询连接</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>